QT       += core gui network sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    backup_source/backupdialog.cpp \
    device_source/deviceadddialog.cpp \
    device_source/deviceadditemwidget.cpp \
    device_source/devicedeldialog.cpp \
    device_source/devicedelitemwidget.cpp \
    device_source/deviceitemwidget.cpp \
    global_source/globaldata.cpp \
    http_source/http.cpp \
    login_sources/findpasswd.cpp \
    login_sources/loginwidget.cpp \
    login_sources/registerwidget.cpp \
    main.cpp \
    mainwindow.cpp \
    mysql_source/mysqldatabase.cpp \
    plot_source/qcustomplot.cpp \
    query_source/querydialog.cpp \
    smtp_source/smtp.cpp \
    task_sources/localbackuptask.cpp \
    udp_source/udp.cpp \
    user_source/userwindow.cpp \
    visual_source/plotwidget.cpp

HEADERS += \
    backup_header/backupdialog.h \
    device_header/deviceadddialog.h \
    device_header/deviceadditemwidget.h \
    device_header/devicedeldialog.h \
    device_header/devicedelitemwidget.h \
    device_header/deviceitemwidget.h \
    global_header/globaldata.h \
    http_header/http.h \
    login_headers/findpasswd.h \
    login_headers/loginwidget.h \
    login_headers/registerwidget.h \
    mainwindow.h \
    mysql_header/mysqldatabase.h \
    plot_header/qcustomplot.h \
    query_header/querydialog.h \
    smtp_header/smtp.h \
    task_headers/localbackuptask.h \
    udp_header/udp.h \
    user_headers/userwindow.h \
    visual_header/plotwidget.h

FORMS += \
    backup_ui/backupdialog.ui \
    device_ui/deviceadddialog.ui \
    device_ui/deviceadditemwidget.ui \
    device_ui/devicedeldialog.ui \
    device_ui/devicedelitemwidget.ui \
    device_ui/deviceitemwidget.ui \
    login_ui/findpasswd.ui \
    login_ui/loginwidget.ui \
    login_ui/registerwidget.ui \
    mainwindow.ui \
    query_ui/querydialog.ui \
    user_ui/userwindow.ui \
    visual_ui/plotwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    icons.qrc

RC_ICONS = app.ico

